package com.sunshine.constant;

/**
 * Created by along on 4/19/18.
 */
public class UserRole {

    public static final String COMM_USER = "COMM";

    public static final String ADMIN_USER = "ADMIN";

    public static final String DELETED_USER = "DELETED";


    /**
     * 在 @PreAuthorize 中我们利用内建的 SPEL 表达式：比如 'hasRole()' 来决定哪些用户有权访问。
     * 需注意的一点是 hasRole 表达式认为每个角色名字前都有一个前缀 'ROLE_'
     **/
    public static final String ROLE_COMM = "ROLE_COMM";

    public static final String ROLE_ADMIN = "ROLE_ADMIN";
}
